* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-light);
  transition: background-color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

article {
  font-size: 1rem;
  line-height: 1.7;
}

article h1 {
  font-size: 2.25rem;
  margin: 2.5rem 0 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

article h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

article h3 {
  font-size: 1.5rem;
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}

article h4 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

article p {
  margin-bottom: 1.5rem;
}

article a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

article a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

article img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

article img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

article ul,
article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

article li {
  margin-bottom: 0.5rem;
}

@media (max-width: 996px) {
  article {
    font-size: 0.95rem;
  }
  
  article h1 {
    font-size: 2rem;
    margin-top: 2rem;
  }
  
  article h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
  }
  
  article h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
  }
  
  article img:hover {
    transform: scale(1.02);
  }
}

